<?php
namespace app\model;

use think\Model;

class GameOrderModel extends Model {
    protected $name = 'game_order';


      // 关联支付记录
      public function payment()
      {
          return $this->hasOne(GameOrderPaymentModel::class, 'order_id', 'id');
      }
  
      // 关联商品
      public function product()
      {
          return $this->hasOne(GameOrderPaymentModel::class, 'id', 'product_id');
      }


}
